package com.zzld.modules.autoinn.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.fasterxml.jackson.annotation.JsonFormat;

@Table(name = "zzld_autoinn_collar")
public class Collar {
    @Id
    private String id;

    @Column(name = "customer_id")
    private String customerId;

    @Column(name = "counpon_id")
    private String counponId;
     
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="Asia/Shanghai")
    @Column(name = "collar_time")
    private Date collarTime;

    
    private String wxaccount;
    
    private String openid;
    
    private int state;
    
    
    @Transient
   	private String nickname;
       
    @Transient
    private String coupon_name;
       
    public String getNickname() {
		return nickname;
	}
	public void setNickname(String nickname) {
		this.nickname = nickname;
	}
	public String getCoupon_name() {
		return coupon_name;
	}
	public void setCoupon_name(String coupon_name) {
		this.coupon_name = coupon_name;
	}
	public int getCoupon_zhi() {
		return coupon_zhi;
	}
	public void setCoupon_zhi(int coupon_zhi) {
		this.coupon_zhi = coupon_zhi;
	}
	public int getSoupon_qi() {
		return soupon_qi;
	}
	public void setSoupon_qi(int soupon_qi) {
		this.soupon_qi = soupon_qi;
	}

	@Transient
    private int coupon_zhi;
       
    @Transient
    private int soupon_qi;

    
    
    @Column(name="phone_num")
    private String phoneNum;
    public String getPhoneNum(){
    	return phoneNum;
    }
    public void setPhoneNum(String phoneNum){
    	this.phoneNum=phoneNum;
    }
    
    
    
    public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

	public String getWxaccount() {
		return wxaccount;
	}

	public void setWxaccount(String wxaccount) {
		this.wxaccount = wxaccount;
	}

	public String getOpenid() {
		return openid;
	}

	public void setOpenid(String openid) {
		this.openid = openid;
	}

	/**
     * @return id
     */
    public String getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * @return customer_id
     */
    public String getCustomerId() {
        return customerId;
    }

    /**
     * @param customerId
     */
    public void setCustomerId(String customerId) {
        this.customerId = customerId;
    }

    /**
     * @return counpon_id
     */
    public String getCounponId() {
        return counponId;
    }

    /**
     * @param counponId
     */
    public void setCounponId(String counponId) {
        this.counponId = counponId;
    }

    /**
     * @return collar_time
     */
    public Date getCollarTime() {
        return collarTime;
    }

    /**
     * @param collarTime
     */
    public void setCollarTime(Date collarTime) {
        this.collarTime = collarTime;
    }
}